package nuc.ss.wl.dao;

import nuc.ss.wl.entity.CC;
import nuc.ss.wl.entity.SC;

import java.util.List;

public interface CCDao {


    /**
     *
     * @param cc
     * @return
     */
    public int save(CC cc);

    /**
     *
     * @param classno
     * @param cno
     * @return
     */
    public int delete(int classno, int cno);

    /**
     *
     * @param cc
     * @return
     */
    public int update(CC cc);

    /**
     *
     * @return
     */
    public List<CC> findAll();

    /**
     *
     * @param classno
     * @param cno
     * @return
     */
    public CC findByClassnoAndCno(int classno, int cno);
}
